//
//  CRC.h
//  homelib
//
//  Created by liutu on 12-2-14.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#ifndef CRC_h
#define CRC_h

#define LOWBYTE(v)   ((unsigned char) (v))
#define HIGHBYTE(v)  ((unsigned char) (((unsigned int) (v)) >> 8))

#include <stdio.h>

void crc16(unsigned char *ptr, unsigned char len,unsigned char *Lcrc,unsigned char *Hcrc);

unsigned short int cal_Crc(unsigned char *ptr, unsigned int len,unsigned char *Lcrc,unsigned char *Hcrc);

#endif
